from sensorapp import db


class Sensor(db.Model):
    id = db.Column(db.String(36), primary_key=True)
    uuid = db.Column(db.String(50))  # uuid
    metric = db.Column(db.String(10))  # 传感器数据上传类型
    type = db.Column(db.String(50))  # 传感器类型
    value = db.Column(db.String(50))  # 传感器值
    time = db.Column(db.Float)  # 时间戳
